//
//  STFrame.h
//  STBasicsApp
//
//  Created by jerry on 2019/5/1.
//  Copyright © 2019 jerry. All rights reserved.
//

#ifndef STFrame_h
#define STFrame_h

//字体设置
#define kFont(x)        [UIFont systemFontOfSize:x]
#define kDefaultFont    [UIFont systemFontOfSize:23.0f]

//屏幕宽高
#define KViewWidth       [UIScreen mainScreen].bounds.size.width
#define KViewHeight      [UIScreen mainScreen].bounds.size.height
#define kKeyWindow       [UIApplication sharedApplication].keyWindow

#define kFrame(x, y, w, h)          CGRectMake(x, y, w, h)
#define kBounds(x, y, w, h)         CGRectMake(x, y, w, h)
#define kPoint(x, y)                CGPointMake(x, y);
#define kSize(w, h)                 CGSizeMake(w, h);

#define kGetMaxY(view)              CGRectGetMaxY(view.frame)
#define kGetMaxX(view)              CGRectGetMaxX(view.frame)
#define kGetMinX(view)              CGRectGetMinX(view.frame)
#define kGetMinY(view)              CGRectGetMinY(view.frame)
#define kGetMidX(view)              CGRectGetMidX(view.frame)
#define kGetMidY(view)              CGRectGetMidY(view.frame)
#define kGetWidth(view)             CGRectGetWidth(view.frame)
#define kGetHeight(view)            CGRectGetHeight(view.frame)

#endif /* STFrame_h */
